package com.peng.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.peng.service.HospitalSetService;
import com.peng.mapper.HospitalSetMapper;
import com.peng.yygh.model.hosp.HospitalSet;
import org.springframework.stereotype.Service;

/**
* @author dell
* @description 针对表【hospital_set(医院设置表)】的数据库操作Service实现
* @createDate 2022-05-31 19:25:59
*/
@Service
public class HospitalSetServiceImpl extends ServiceImpl<HospitalSetMapper, HospitalSet>
    implements HospitalSetService{

    @Override
    public String getSignKey(String hoscode) {
        LambdaQueryWrapper<HospitalSet> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(HospitalSet::getHoscode,hoscode);
        HospitalSet one = this.getOne(queryWrapper);
        return one.getSignKey();
    }
}




